package homework_08;

/**工程师类
 *
 */
public class Engineer extends Emp {
    private String work2;

    public Engineer(){
        super();
    }

    public Engineer(String name){
        super(name,"软件工程师","编写代码");
        this.work2 = "进行测试";
    }

    public String getWork2() {
        return work2;
    }

    public void working(){
        System.out.println("软件工程师"+getName()+",在"+getWork()+",在"+work2);
    }
}
